package com.kun.demo01;

//测试Jvm内存溢出异常
public class TestOOM {

    public static void main(String[] args) {
        String str = new String("abcde");
        while (true) {
            str += str;
        }
    }
}
